package com.platform.service;

import com.platform.dao.ApiCommonArticleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.entity.CommonArticleVo;

/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2018-08-31 16:31:13
 */
@Service
public class ApiCommonArticleService {
    @Autowired
    private ApiCommonArticleMapper commonArticleMapper;


    public CommonArticleVo queryObject(Integer id) {
        return commonArticleMapper.queryObject(id);
    }


    public List<CommonArticleVo> queryList(Map<String, Object> map) {
        return commonArticleMapper.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return commonArticleMapper.queryTotal(map);
    }


    public int save(CommonArticleVo commonArticle) {
        return commonArticleMapper.save(commonArticle);
    }


    public int update(CommonArticleVo commonArticle) {
        return commonArticleMapper.update(commonArticle);
    }


    public int delete(Integer id) {
        return commonArticleMapper.delete(id);
    }


    public int deleteBatch(Integer[] ids) {
        return commonArticleMapper.deleteBatch(ids);
    }
}
